package mundialfp.view.ws;

import uy.com.pzit.fpmundialmodel.web.ws.Pais;
import uy.com.pzit.fpmundialmodel.web.ws.PaisResponse;



/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */



/**
 *
 * @author pferraz
 */
public class PaisWSService {

    public static Pais addPais(uy.com.pzit.fpmundialmodel.web.ws.Pais pais) {
        uy.com.pzit.fpmundialmodel.service.PaisServiceImplService service = new uy.com.pzit.fpmundialmodel.service.PaisServiceImplService();
        uy.com.pzit.fpmundialmodel.service.PaisService port = service.getPaisServiceImplPort();
        return port.addPais(pais);
    }

    public static PaisResponse getPaisById(java.lang.Integer id) {
        uy.com.pzit.fpmundialmodel.service.PaisServiceImplService service = new uy.com.pzit.fpmundialmodel.service.PaisServiceImplService();
        uy.com.pzit.fpmundialmodel.service.PaisService port = service.getPaisServiceImplPort();
        return port.getPaisById(id);
    }

    public static PaisResponse getPaisByNombre(java.lang.String nombre) {
        uy.com.pzit.fpmundialmodel.service.PaisServiceImplService service = new uy.com.pzit.fpmundialmodel.service.PaisServiceImplService();
        uy.com.pzit.fpmundialmodel.service.PaisService port = service.getPaisServiceImplPort();
        return port.getPaisByNombre(nombre);
    }

    public static PaisResponse getPaises() {
        uy.com.pzit.fpmundialmodel.service.PaisServiceImplService service = new uy.com.pzit.fpmundialmodel.service.PaisServiceImplService();
        uy.com.pzit.fpmundialmodel.service.PaisService port = service.getPaisServiceImplPort();
        return port.getPaises();
    }

    public static PaisResponse getPaisesOrderByRanking() {
        uy.com.pzit.fpmundialmodel.service.PaisServiceImplService service = new uy.com.pzit.fpmundialmodel.service.PaisServiceImplService();
        uy.com.pzit.fpmundialmodel.service.PaisService port = service.getPaisServiceImplPort();
        return port.getPaisesOrderByRanking();
    }

   
    
}
